# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-websocket-client
pkgver=1.3.3
pkgrel=0
pkgdesc="WebSocket client library for Python"
url="https://github.com/websocket-client/websocket-client"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
checkdepends="
	py3-python-socks
	pytest
	"
source="https://github.com/websocket-client/websocket-client/archive/v$pkgver/websocket-client-v$pkgver.tar.gz"
builddir="$srcdir/websocket-client-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest websocket/tests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
85bee8e4af5d293c22f74096282d230455d8915bd6a848d7806cb46b8d2f134ee837bf1c44e196ad182db75b861bd4bf99a01cbe3e7f23e82eb29066bd154741  websocket-client-v1.3.3.tar.gz
"
